package com.liu.yuoj.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liu.yuoj.model.dto.questionsubmit.QuestionSubmitAddRequest;
import com.liu.yuoj.model.dto.questionsubmit.QuestionSubmitQueryRequest;
import com.liu.yuoj.model.entity.QuestionSubmit;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liu.yuoj.model.entity.User;
import com.liu.yuoj.model.vo.QuestionSubmitVO;

/**
* @author Administrator
* @description 针对表【question_submit(题目提交表)】的数据库操作Service
* @createDate 2025-01-13 20:49:45
*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {

    //提交题目
    long doQuestionSubmit(QuestionSubmitAddRequest questionSubmitAddRequest, User loginUser);

    //题目提交查询包装器
    Wrapper<QuestionSubmit> getQueryWrapper(QuestionSubmitQueryRequest questionSubmitQueryRequest);

    //题目提交页面
    Page<QuestionSubmitVO> getQuestionSubmitVOPage(Page<QuestionSubmit> questionSubmitPage, User loginUser);
}
